package service;

import model.VirtualMemory;

import java.util.List;

/**
 * Created by PanD
 */

public interface ReplaceService {

    /**
     * description: 使用FIFO进行置换
     * @param virtualMemoryList
     * @param sizeOfMemory
     * @return java.lang.Double
     */
    Double replaceWithFIFO(List<VirtualMemory> virtualMemoryList, int sizeOfMemory);

    /**
     * description: 使用OPT进行置换
     * @param virtualMemoryList
     * @param sizeOfMemory
     * @return java.lang.Double
     */
    Double replaceWithOPT(List<VirtualMemory> virtualMemoryList, int sizeOfMemory);

    /**
     * description: 使用LRU进行置换
     * @param virtualMemoryList
     * @param sizeOfMemory
     * @return java.lang.Double
     */
    Double replaceWithLRU(List<VirtualMemory> virtualMemoryList, int sizeOfMemory);
}
